package com.zh.auth.domain.dto;

import com.zh.web.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@ApiModel("新增角色参数")
public class AddRoleDto extends BaseDto implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "角色编码", required = true)
    @NotNull
    private Integer roleCode;
    @ApiModelProperty(value = "角色名称", required = true)
    @NotEmpty
    private String roleName;
    @ApiModelProperty(value = "角色描述",required = true)
    private String roleDesc;
}
